From 5cbd3c00ba3d20d868771ea9ad13f1b791e5036e Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 3 Oct 2003 11:36:04 +0000 Subject: [PATCH] (x_load_font): Clear all members of FONTP before start filling them. --- src/macterm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/macterm.c b/src/macterm.c index 8c22d047939..fc9b890db18 100644 --- a/src/macterm.c +++ b/src/macterm.c @@ -6240,6 +6240,7 @@ x_load_font (f, fontname, size) /* Now fill in the slots of *FONTP. */ BLOCK_INPUT; + bzero (fontp, sizeof (*fontp)); fontp->font = font; fontp->font_idx = i; fontp->name = (char *) xmalloc (strlen (font->fontname) + 1); -- 2.30.2